<div class="boundgrid">
	<?php foreach ($contexts as $context): ?>
	<div class="browse_title"><?php echo $context['Catchwordcontext']['context']; ?></div>
	<div><?php echo $context['Catchwordcontext']['description']; ?></div>
		<?php foreach ($context['Catchword'] as $catchword): ?>
		<div class="user_brief">
			<div class="left">
				<?php 
					$img_src = $catchword['avatar'];
					if($img_src != null){
						$img_src = 'topics/'.$catchword['avatar'];
					}
					else {
						$img_src = 'topics/asking.png';
					}
					echo $this->Html->link(
							$this->Html->image($img_src,array('alt' => $catchword['catchword'],'style' => 'border:1px solid #898989;margin: 5px 0px 0px;','class'=>'avatar40')),
							'/catchwords/view/'.$catchword['id'],
							array('escape' => false,'title' => $catchword['catchword'])
						);
				?>
			</div>
			<div class="right">
				<?php echo $this->Html->link(
	    				$catchword['catchword'],
						'/catchwords/view/'.$catchword['id'],
						array('escape' => false,'title' => $catchword['catchword'])
					);
				?><br />
				<span class="font11">
					<span class="bold">?</span> người theo dõi<br />
					<span class="bold">?</span> câu hỏi
				</span>
			</div>
		</div>
		<?php endforeach; ?>
    	<?php unset($catchword); ?>
	<?php endforeach; ?>
    <?php unset($context); ?>
</div>